<h1>
    <?=$this->title ?>
</h1>
<?
    Principio_Library_Common::printErrorsAndMsg();
?>
<div id="container">
    <table cellspacing="0" class="table" width="50%" style="margin-left: 25%;">
        <tr class="table_title">
            <td width="20%">Type</td>
            <td width="40%">Caption</td>
            <td width="20%" align="center">Ext</td>
            <td width="20%" align="center">Add device</td>
        </tr>
<?
    $i = 0; 
    foreach ($this->types as $type_model)
    {
        $i++;
        $row_class = ($i % 2 == 0 ? "row_odd" : "row_even");
?>
	    <tr class="<?=$row_class ?>">
            <td><?=$type_model->getType() ?></td>
            <td><?=$type_model->getCaption() ?></td>
            <td align="center"><?=$type_model->getExts() ?></td>
            <td align="center">
                <img style="cursor: pointer" src="/img/add2.png" onClick="addItem({menu: 'spa', container: 'inner', company_id: <?=$this->company_id ?>, type_id: <?=$type_model->getID() ?>});">
            </td>
	    </tr>
<? 
    };
?>
    </table>
</div>